package com.pxd.ServeDemo2.Impl;


import com.pxd.ServeDemo2.TranslateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
class tran{
    @Qualifier("franch2ChineseImpl")
    @Autowired
    TranslateService Franch2ChineseImpl;

    @Qualifier("english2ChineseImpl")
    @Autowired
    TranslateService English2ChineseImpl;

    @RequestMapping("/english")
    public String english(String  word){
        return English2ChineseImpl.translate(word);
    }
    @RequestMapping("/franch")
    public String franch(String  word){
        return Franch2ChineseImpl.translate(word);
    }
}